//
//  WalletDetailViewController.m
//  WBBaseProject
//
//  Created by 吴斌 on 2018/4/10.
//  Copyright © 2018年 吴斌. All rights reserved.
//

#import "WalletDetailViewController.h"
#import "WalletDetailCell.h"

static NSString * const WalletDetailCellReuseId = @"WalletDetailCell";
@interface WalletDetailViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic, strong) UITableView *tableView;
/** 消息数据 */
@property (nonatomic,strong) NSMutableArray *dataArr;

@end

@implementation WalletDetailViewController

#pragma mark - 生命周期 Life Circle
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.title = @"我的收藏";
    [self.view addSubview:self.tableView];
    
    [self registerCell];
    
    //    _page = 1;
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    //    [self.comBoBoxView dimissPopView];
    self.navigationController.navigationBarHidden = NO;
    [WB_SharedApplication setStatusBarStyle:UIStatusBarStyleLightContent];
} 

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
}

- (void)registerCell
{
    [self.tableView registerNib:[UINib nibWithNibName:WalletDetailCellReuseId bundle:nil] forCellReuseIdentifier:WalletDetailCellReuseId];
}

#pragma mark - 懒加载  Lazy Load
- (UITableView *)tableView
{
    if (_tableView == nil) {
        _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight - kNavigationBarHeight) style:UITableViewStylePlain];
        _tableView.backgroundColor = [UIColor whiteColor];
        _tableView.delegate = self;
        _tableView.dataSource = self;
        _tableView.tableFooterView = [UIView new];
        _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    }
    return _tableView;
}

- (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 
    return 4;
}

- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath { 
    WalletDetailCell *cell = [tableView dequeueReusableCellWithIdentifier:WalletDetailCellReuseId forIndexPath:indexPath];

    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 70.f;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    
}

- (NSMutableArray *)dataArr{
    if (_dataArr == nil) {
        _dataArr = [NSMutableArray array];
    }
    return _dataArr;
}

@end
